package com.smarkparking.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.smarkparking.dao.SuperuserDao;
import com.smarkparking.pojo.Superuser;
import com.smarkparking.pojo.User;
import com.smarkparking.service.SuperuserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 刘涛
 * @create 2021/11/17 17:59
 */
@Service
public class SuperuserServiceImpl implements SuperuserService {
    @Autowired
    private SuperuserDao superuserDao;

    @Override
    public Superuser selectSuUserByName(String name) {
        QueryWrapper<Superuser> sqw = new QueryWrapper<>();
        sqw.eq("name", name);
        Superuser superuser = superuserDao.selectOne(sqw);
        return superuser;
    }
}
